home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 July: Mac OS SDK / Dev.CD Jul 00 SDK2.toast / Development Kits / Cross Platform / QuickTime 4.1.2 Windows SDK / CIncludes / CryptoMessageSyntax.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-12  |  2.6 KB  |  139 lines  |  [TEXT/R*ch]

  1. /*
  2.      File:        CryptoMessageSyntax.h
  3.  
  4.      Contains:    CMS Interfaces.
  5.  
  6.      Version:    Technology:    1.0
  7.                  Release:    QuickTime 4.1
  8.  
  9.      Copyright:    (c) 1999 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __CRYPTOMESSAGESYNTAX__
  18. #define __CRYPTOMESSAGESYNTAX__
  19.  
  20. #ifndef __MACTYPES__
  21.     #include <MacTypes.h>
  22. #endif
  23.  
  24. #ifndef __COREFOUNDATION_CFARRAY__
  25.     #include <CoreFoundation\CFArray.h>
  26. #endif
  27.  
  28. #ifndef __COREFOUNDATION_CFBAG__
  29.     #include <CoreFoundation\CFBag.h>
  30. #endif
  31.  
  32. #ifndef __COREFOUNDATION_CFDATA__
  33.     #include <CoreFoundation\CFData.h>
  34. #endif
  35.  
  36. #ifndef __COREFOUNDATION_CFDATE__
  37.     #include <CoreFoundation\CFDate.h>
  38. #endif
  39.  
  40. #ifndef __COREFOUNDATION_CFSET__
  41.     #include <CoreFoundation\CFSet.h>
  42. #endif
  43.  
  44. #ifndef __COREFOUNDATION_CFSTRING__
  45.     #include <CoreFoundation\CFString.h>
  46. #endif
  47.  
  48. #ifndef __KEYCHAIN__
  49.     #include <Keychain.h>
  50. #endif
  51.  
  52.  
  53. /*
  54.     Data structures and types
  55. */
  56.  
  57.  
  58. #if PRAGMA_ONCE
  59. #pragma once
  60. #endif
  61.  
  62. #ifdef __cplusplus
  63. extern "C" {
  64. #endif
  65.  
  66. #if PRAGMA_IMPORT
  67. #pragma import on
  68. #endif
  69.  
  70. #if PRAGMA_STRUCT_ALIGN
  71.     #pragma options align=mac68k
  72. #elif PRAGMA_STRUCT_PACKPUSH
  73.     #pragma pack(push, 2)
  74. #elif PRAGMA_STRUCT_PACK
  75.     #pragma pack(2)
  76. #endif
  77.  
  78. typedef struct OpaqueSecTypeRef*         SecTypeRef;
  79. typedef struct OpaqueSecSignerRef*         SecSignerRef;
  80. /* Signer object manipulation */
  81. EXTERN_API( OSStatus )
  82. SecSignerGetStatus                (SecSignerRef             signer);
  83.  
  84. EXTERN_API( SecTypeRef )
  85. SecRetain                        (SecTypeRef             sec);
  86.  
  87. EXTERN_API( void )
  88. SecRelease                        (SecTypeRef             sec);
  89.  
  90. EXTERN_API( UInt32 )
  91. SecRetainCount                    (SecTypeRef             sec);
  92.  
  93. /* Errors Codes  */
  94. enum {
  95.     errSecUnsupported            = -13843,
  96.     errSecInvalidData            = -13844,
  97.     errSecTooMuchData            = -13845,
  98.     errSecMissingData            = -13846,
  99.     errSecNoSigners                = -13847,
  100.     errSecSignerFailed            = -13848,
  101.     errSecInvalidPolicy            = -13849,
  102.     errSecUnknownPolicy            = -13850,
  103.     errSecInvalidStopOn            = -13851,
  104.     errSecMissingCert            = -13852,
  105.     errSecInvalidCert            = -13853,
  106.     errSecNotSigner                = -13854,
  107.     errSecNotTrusted            = -13855,
  108.     errSecMissingAttribute        = -13856,
  109.     errSecMissingDigest            = -13857,
  110.     errSecDigestMismatch        = -13858,
  111.     errSecInvalidSignature        = -13859,
  112.     errSecAlgMismatch            = -13860,
  113.     errSecUnsupportedAlgorithm    = -13864,
  114.     errSecContentTypeMismatch    = -13865,
  115.     errSecDebugRoot                = -13866
  116. };
  117.  
  118.  
  119. #if PRAGMA_STRUCT_ALIGN
  120.     #pragma options align=reset
  121. #elif PRAGMA_STRUCT_PACKPUSH
  122.     #pragma pack(pop)
  123. #elif PRAGMA_STRUCT_PACK
  124.     #pragma pack()
  125. #endif
  126.  
  127. #ifdef PRAGMA_IMPORT_OFF
  128. #pragma import off
  129. #elif PRAGMA_IMPORT
  130. #pragma import reset
  131. #endif
  132.  
  133. #ifdef __cplusplus
  134. }
  135. #endif
  136.  
  137. #endif /* __CRYPTOMESSAGESYNTAX__ */
  138.  
  139.